package com.twentyOne.ClothingLand.dao.impl;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.twentyOne.ClothingLand.dao.BaseDAO;
import com.twentyOne.ClothingLand.dao.IReturnGoodsDAO;
import com.twentyOne.ClothingLand.vo.ReturnGoods;

public class ReturnGoodsDAO extends BaseDAO implements IReturnGoodsDAO {

	@Override
	public void addReturnGoods(ReturnGoods returnGoods) {
		
		Session session = getSession();
		Transaction tx = session.beginTransaction();
		session.save(returnGoods);
		tx.commit();
		session.close();
		
	}

}
